Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup a mario bot to build images on demand #1

Closed
wants to merge 1 commit into from

Conversation

afrittoli
Copy link
Owner

Define an event-listener that can handle GitHub webhooks, using an
interceptor "mario" service.

The interceptor will:

  • validate the event with the shared secret
  • filter new comment events only
  • filter comments that start with "/mario" only
  • for now only accept the syntax "/mario build [contextPath]
  • return a body with the minimal content for the trigger binding

A tekton tasks build the request images and triggers a cloud event.
The pull request URL is attached to the taskrun with a label,
that is sent via the cloud event.

Define an event listener that receives the cloud event, and triggers
something (TBD) that posts back to GitHub a comment with:

  • a link to the logs app to see the build logs
  • a link to the built image with the sha
  • a random picture of mario from the talk

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

@afrittoli afrittoli force-pushed the kubecon_demo branch 2 times, most recently from ecac2a1 to b702e2e Compare November 20, 2019 19:53
@afrittoli
Copy link
Owner Author

afrittoli commented Nov 25, 2019

TBD: reply ack (requires comment update?)
TBD: why wrong reference?

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

mario at your service!

Here is the image you requested: built image|build logs

@afrittoli afrittoli force-pushed the kubecon_demo branch 4 times, most recently from 2c145a8 to f2232ab Compare November 26, 2019 17:18
@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

luigi at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

tekton at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

mario at your service!

Here is the image you requested: built image|build logs

Define an event-listener that can handle GitHub webhooks, using an
interceptor "mario" service.

The interceptor will:
- validate the event with the shared secret
- filter new comment events only
- filter comments that start with "/mario" only
- for now only accept the syntax "/mario build [contextPath]
- return a body with the minimal content for the trigger binding

A tekton tasks build the request images and triggers a cloud event.
The pull request URL is attached to the taskrun with a label,
that is sent via the cloud event.

Define an event listener that receives the cloud event, and triggers
something (TBD) that posts back to GitHub a comment with:
- a link to the logs app to see the build logs
- a link to the built image with the sha
- a random picture of mario from the talk
@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

luigi at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

mario at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

tekton at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

mario at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

luigi at your service!

Here is the image you requested: built image|build logs

@afrittoli
Copy link
Owner Author

/mario build tekton/images/tkn tkn:mario

@afrittoli
Copy link
Owner Author

luigi at your service!

Here is the image you requested: built image|build logs

afrittoli added a commit that referenced this pull request Jan 17, 2020
Define an event listener that triggers a tekton task that deploys
prow configurations on a target k8s cluster / namespace from a
give git repo / path.

Move cronjobs into a cronjobs folder and add docs for each of them.

Closes #1
afrittoli added a commit that referenced this pull request Jan 22, 2020
Define an event listener that triggers a tekton task that deploys
prow configurations on a target k8s cluster / namespace from a
give git repo / path.

Move cronjobs into a cronjobs folder and add docs for each of them.

Closes #1
@afrittoli afrittoli closed this in 656a9bf Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant